package com.youi.entity;

import java.util.Date;

import com.youi.common.DelStatus;

import java.io.Serializable;


/**
 * 商品规格
 * @author XJY
 */
public class Goodssize implements Serializable {

	private Long id;							//ID
	private Date gmtCreated;					//创建时间
	private Integer delStatus;					//删除状态（0否 1是）
	private Date gmtModify;					    //最后修改时间
	private Long goodsId;					    //商品id
	private String specification;			    //规格
	private Double price;					    //价格
	private Integer stockNum;				    //库存数量
	private Integer saleNum;					//销售数量
	private Integer realStockNum;				//实时库存数量

	private Integer allStockNum;				//商品实时库存
	private Integer realStockCnt;				//录入库存数量
	private Integer realSaleCnt;				//销售数量 
	
	
    public Goodssize(){

    }

    public Goodssize(Long id,Date gmtCreated,Integer delStatus,Date gmtModify) {
       this.id=id;
       this.gmtCreated=gmtCreated;
       this.delStatus=delStatus;
       this.gmtModify=gmtModify;
    }


    public Goodssize(Long goodsId) {
    	this.gmtCreated=new Date();
        this.delStatus=DelStatus.NODEL;
        this.gmtModify=gmtCreated;
        this.goodsId=goodsId;
    }
    
    public Goodssize(Long goodsId,String specification,Double price,Integer stockNum) {
    	this.gmtCreated=new Date();
        this.delStatus=DelStatus.NODEL;
        this.gmtModify=gmtCreated;
        this.goodsId=goodsId;
        this.specification=specification;
        this.price=price;
        this.stockNum=stockNum;
        this.saleNum=0;
        this.realStockNum=stockNum;
    }


	public void setId(Long id){
		this.id=id;
	}

	public Long getId(){
		return id;
	}

	public void setGmtCreated(Date gmtCreated){
		this.gmtCreated=gmtCreated;
	}

	public Date getGmtCreated(){
		return gmtCreated;
	}

	public void setDelStatus(Integer delStatus){
		this.delStatus=delStatus;
	}

	public Integer getDelStatus(){
		return delStatus;
	}

	public void setGmtModify(Date gmtModify){
		this.gmtModify=gmtModify;
	}

	public Date getGmtModify(){
		return gmtModify;
	}

	public void setGoodsId(Long goodsId){
		this.goodsId=goodsId;
	}

	public Long getGoodsId(){
		return goodsId;
	}

	public void setSpecification(String specification){
		this.specification=specification;
	}

	public String getSpecification(){
		return specification;
	}

	public void setPrice(Double price){
		this.price=price;
	}

	public Double getPrice(){
		return price;
	}

	public void setStockNum(Integer stockNum){
		this.stockNum=stockNum;
	}

	public Integer getStockNum(){
		return stockNum;
	}

	public Integer getSaleNum() {
		return saleNum;
	}

	public void setSaleNum(Integer saleNum) {
		this.saleNum = saleNum;
	}

	public Integer getRealStockNum() {
		return realStockNum;
	}

	public void setRealStockNum(Integer realStockNum) {
		this.realStockNum = realStockNum;
	}

	public Integer getAllStockNum() {
		return allStockNum;
	}

	public void setAllStockNum(Integer allStockNum) {
		this.allStockNum = allStockNum;
	}

	public Integer getRealStockCnt() {
		return realStockCnt;
	}

	public void setRealStockCnt(Integer realStockCnt) {
		this.realStockCnt = realStockCnt;
	}

	public Integer getRealSaleCnt() {
		return realSaleCnt;
	}

	public void setRealSaleCnt(Integer realSaleCnt) {
		this.realSaleCnt = realSaleCnt;
	}

}
